package signals;

import java.net.UnknownHostException;

import model.data.Status;

import cs.remoteapp.Message;

/**
 * * <b>Project ChatSystemG6 INSA 4INFOA1 - 2013/2014</b>
 * <P>
 * <i>Package signals </i> <br>
 * <li>The UserStatus class corresponds to the signal sent when a user changes
 * his status</li>
 * 
 * @author Christelle SIAGO HAPPI
 */
public class UserStatus extends Message {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
    * 
    */
	private Status status;

	/**
	 * Constructor
	 * 
	 * @param login
	 *            Login of the local user
	 * @param show
	 *            Status of the user to notify
	 * @throws UnknownHostException
	 */
	public UserStatus(String login, Status show) throws UnknownHostException {
		super(login);
		status = show;
	}

	/**
	 * @return the localUserStatus
	 */
	public String getStatus() {
		return status.toString();
	}
}
